﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace Models {
    public class ExpressInfo {
        public long Id { get; set; }

        [Required, Column("ExpressName", TypeName = "nvarchar(20)")]
        public string ExpressName { get; set; }

        [Required, Column("Mailno", TypeName = "varchar(20)")]
        public string Mailno { get; set; }

        [Required, Column("CreateTime", TypeName = "datetime")]
        public DateTime CreateTime { get; set; } = DateTime.Now;

        public virtual OrderInfos Order { get; set; }
    }
}
